package c.x.jy.dao.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

/**
 * 系统用户
 * 
 * @author amwhyh
 * @email xxx@xx.com
 * @date 2021-05-20 20:20:23
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
@TableName("sys_user")
public class SysUserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long userId;
	/**
	 * 用户名
	 */
	private String username;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 盐
	 */
	private String salt;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 手机号
	 */
	private String mobile;
	/**
	 * 状态 0：禁用 1：正常
	 */
	private Integer status;
	/**
	 * 创建者ID
	 */
	private Long createUserId;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 
	 */
	private String headImg;
	/**
	 * 
	 */
	private Long businessId;
	/**
	 * 
	 */
	private String openId;
	
	@TableField(exist = false)
	private String token;
	
	@TableField(exist = false)
	private String roleIds;
	

	
	@TableField(exist = false)
	private Set<String> permissions;
	
	@TableField(exist = false)
	private List<SysRoleEntity> roles;

}
